package util;

import java.util.Random;

public class Aleatorio{
	
	private static Random rand = new Random();
	
	public static void fijarSemilla(long sem){
		rand.setSeed(sem);
	}
	public static double getDoubleAleatorio(){
		return rand.nextDouble(); 
	}
	
	public static int getIntAleatorio(int n){
		return rand.nextInt(n); 
	}
	
	public static Random getAleatorio(){
		return rand; 
	}

}
